package com.ruoyi.production.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产工单对象 orders
 * 
 * @author admin
 * @date 2024-08-02
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 生产工单id */
    private Long ordersId;

    /** 产品型号 */
    @Excel(name = "产品型号")
    private String cpMode;

    /** 客户 */
    @Excel(name = "客户")
    private String client;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String cpName;

    /** 产品数量 */
    @Excel(name = "产品数量")
    private Long scSum;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 交货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 制单人 */
    @Excel(name = "制单人")
    private String zdPerson;

    /** 制单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "制单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date zdTime;

    /** 区别码 1-库存备货  2-订单备货 */
    @Excel(name = "区别码",readConverterExp = "1=库存备货,2=订单备货")
    private String code;

    public void setOrdersId(Long ordersId) 
    {
        this.ordersId = ordersId;
    }

    public Long getOrdersId() 
    {
        return ordersId;
    }
    public void setCpMode(String cpMode) 
    {
        this.cpMode = cpMode;
    }

    public String getCpMode() 
    {
        return cpMode;
    }
    public void setClient(String client) 
    {
        this.client = client;
    }

    public String getClient() 
    {
        return client;
    }
    public void setCpName(String cpName) 
    {
        this.cpName = cpName;
    }

    public String getCpName() 
    {
        return cpName;
    }
    public void setScSum(Long scSum) 
    {
        this.scSum = scSum;
    }

    public Long getScSum() 
    {
        return scSum;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setDeliveryTime(Date deliveryTime) 
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime() 
    {
        return deliveryTime;
    }
    public void setZdPerson(String zdPerson) 
    {
        this.zdPerson = zdPerson;
    }

    public String getZdPerson() 
    {
        return zdPerson;
    }
    public void setZdTime(Date zdTime) 
    {
        this.zdTime = zdTime;
    }

    public Date getZdTime() 
    {
        return zdTime;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ordersId", getOrdersId())
            .append("cpMode", getCpMode())
            .append("client", getClient())
            .append("cpName", getCpName())
            .append("scSum", getScSum())
            .append("unit", getUnit())
            .append("deliveryTime", getDeliveryTime())
            .append("zdPerson", getZdPerson())
            .append("zdTime", getZdTime())
            .append("code", getCode())
            .toString();
    }
}
